<?php

class Static_Block_List extends Kernel_Block 
{
    
    public function getData() 
    {
        $entries = array();
        
        foreach (Static_Backend_Utils::getAll() as $entry) {
            array_push($entries, array(
                'url' => array('id' => $entry['id']), 
                'name' => $entry['title'], 
                'active' => $entry['id'] == Static_Backend_Utils::active(),
                ));
        }
        
        return array('items' => $entries, 'allow_one' => true);
    }
    
}